package redmi

import "fmt"
import (fm "learning/gooop/creational_patterns/factory_method")

type tRedmiLight struct {
	fm.LightInfo
}


func newRedmiLight(info *fm.LightInfo) *tRedmiLight {
	return &tRedmiLight{
		*info,
	}
}

func (me *tRedmiLight) Open() error {
	fmt.Printf("tRedmiLight.Open, %v\n", &me.LightInfo)
	return nil
}

func (me *tRedmiLight) Close() error {
	fmt.Printf("tRedmiLight.Close, %v\n", &me.LightInfo)
	return nil
}